package com.iamback.dy.examine.service.impl;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iamback.dy.entity.ContentUnreviewed;
import com.iamback.dy.examine.service.IContentUnreviewedService;
import com.iamback.dy.mapper.ContentUnreviewedMapper;
 

@Service
public class ContentUnreviewedServiceImpl  
implements  IContentUnreviewedService  {
	@Autowired
	private  ContentUnreviewedMapper contentUnreviewedDao;
// 
//	@Override
//	public Page<ContentUnreviewed> findContentTask(String status ,Pageable pageable){
//		return contentUnreviewedDao.findContentTask(Arrays.asList(status.split(",")),pageable);
//	}
//	
//	@Override
//	public List<ContentUnreviewed> findContentUnreviewed(String status, Pageable pageable) {
//		return contentUnreviewedDao.findContentUnreviewed(status,pageable);
//	}
//	
//	@Override
//    public Integer countTask(String status){
//		return contentUnreviewedDao.countContenTask(Arrays.asList(status.split(",")));
//    }
//	@Override
//	public Integer countTaskByDyId(String dyId){
//		return contentUnreviewedDao.countTaskByDyId(dyId);
//	}
//	
//	@Override
//	public void updateList(List<Long> ids,String status){
//		contentUnreviewedDao.updateList(ids,status);
//	}
//	@Override
//	public Integer countTaskPassByDyId(String trim) {
//		return contentUnreviewedDao.countTaskPassByDyId(trim);
//	}
	
	@Override
	public ContentUnreviewed getById(Integer contentId){
		return contentUnreviewedDao.getById(contentId);
	}
	
	@Override
	public Integer countTakePassByDyId(String dyId) {
		return contentUnreviewedDao.countTakePassByDyId(dyId);
	}

	@Override
	public Integer countTakeByDyId(String dyId) {
		return contentUnreviewedDao.countTakeByDyId(dyId);
	}
	@Override
	public void updateUnreviewed(Map<String, Object> map){
		contentUnreviewedDao.updateContentUnrevieweByStatus(map);
	}
	
	@Override
	public void deleteDyContent(Long dyContentId){
		contentUnreviewedDao.deleteDyContent(dyContentId);
	}
	
	
}
